<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>linux-awk\sed 示例 | Threadv</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="linux-awk\sed 示例 统计ip出现的次数123456789awk &apos;&amp;#123;print $1&amp;#125;&apos; nginx.log | sort | uniq -c | sort -nr | head -n 10awk &apos;&amp;#123;print $1&a">
<meta name="keywords" content="linux">
<meta property="og:type" content="article">
<meta property="og:title" content="linux-awk\sed 示例">
<meta property="og:url" content="http://yoursite.com/2019/12/01/linux_awk_sed/index.html">
<meta property="og:site_name" content="Threadv">
<meta property="og:description" content="linux-awk\sed 示例 统计ip出现的次数123456789awk &apos;&amp;#123;print $1&amp;#125;&apos; nginx.log | sort | uniq -c | sort -nr | head -n 10awk &apos;&amp;#123;print $1&amp;#125;&apos; nginx.log | sort | uniq -c | sort -nr | head -10说明：sort 排序 un">
<meta property="og:updated_time" content="2020-05-16T12:12:01.680Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="linux-awk\sed 示例">
<meta name="twitter:description" content="linux-awk\sed 示例 统计ip出现的次数123456789awk &apos;&amp;#123;print $1&amp;#125;&apos; nginx.log | sort | uniq -c | sort -nr | head -n 10awk &apos;&amp;#123;print $1&amp;#125;&apos; nginx.log | sort | uniq -c | sort -nr | head -10说明：sort 排序 un">
  
    <link rel="alternate" href="/atom.xml" title="Threadv" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Threadv</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Suche"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-linux_awk_sed" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2019/12/01/linux_awk_sed/" class="article-date">
  <time datetime="2019-12-01T07:02:19.000Z" itemprop="datePublished">2019-12-01</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      linux-awk\sed 示例
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h5 id="linux-awk-sed-示例"><a href="#linux-awk-sed-示例" class="headerlink" title="linux-awk\sed 示例"></a>linux-awk\sed 示例</h5><ul>
<li>统计ip出现的次数<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">awk '&#123;print $1&#125;' nginx.log | sort | uniq -c | sort -nr | head -n 10</span><br><span class="line"></span><br><span class="line">awk '&#123;print $1&#125;' nginx.log | sort | uniq -c | sort -nr | head -10</span><br><span class="line"></span><br><span class="line">说明：</span><br><span class="line">sort 排序 </span><br><span class="line">uniq -c 合并相邻相同的并统计</span><br><span class="line">sort 排序 -n 按照数值排序  -r反序</span><br><span class="line">head 取值多少</span><br></pre></td></tr></table></figure>
</li>
</ul>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"> 匹配 错误日志：</span></span><br><span class="line">awk '$9~/500|404/&#123;print $0&#125;' nginx.log</span><br></pre></td></tr></table></figure>
<ul>
<li><p>访问量最高的url</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">awk '&#123;print $7&#125;' nginx.log|</span><br><span class="line">sed -e 's/\?.*//g' \</span><br><span class="line">	-e 's/\/avatar\/[0-9]*/\/avatar\/int/g' \</span><br><span class="line">	-e 's/\topcs\/[0-9]*/\/topics\/int/g' \</span><br><span class="line">	-e 's/\/replies\/[0-9]*/\/replies\/int/g' \</span><br><span class="line">	-e 's/\/[0-9a-z\-]*\.png/\id.png/g' \</span><br><span class="line">	-e 's/\/[0-9a-z\-]*\.jpg/\/id.jpg/g' \</span><br><span class="line">	-e 's/\/[0-9a-z\-]*\.jepg/\/id.jepg/g' \</span><br><span class="line">	-e 's/\/[0-9a-z\-]*\.gif/\/id.gif/g' |</span><br><span class="line">sort | uniq -c | sort -nr</span><br></pre></td></tr></table></figure>
</li>
<li><p>nginx.log</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br></pre></td><td class="code"><pre><span class="line">223.104.7.59 - - [05/Dec/2018:00:00:01 +0000] &quot;GET /topics/17112 HTTP/2.0&quot; 200 9874 &quot;https://www.googleapis.com/auth/chrome-content-suggestions&quot; &quot;Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/70.0.3538.75 Mobile/15E148 Safari/605.1&quot; 0.040 0.040 .</span><br><span class="line">123.125.71.60 - - [05/Dec/2018:00:00:02 +0000] &quot;GET /yuanyibo/topics?locale=en HTTP/1.1&quot; 200 12164 &quot;-&quot; &quot;Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)&quot; 0.032 0.032 .</span><br><span class="line">141.8.142.131 - - [05/Dec/2018:00:00:02 +0000] &quot;GET /topics?page=63 HTTP/1.1&quot; 200 16739 &quot;-&quot; &quot;Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)&quot; 0.120 0.120 .</span><br><span class="line">139.180.131.123 - - [05/Dec/2018:00:00:01 +0000] &quot;GET /cable HTTP/1.1&quot; 101 15073 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 592.015 592.015 .</span><br><span class="line">40.77.167.60 - - [05/Dec/2018:00:00:03 +0000] &quot;GET /hehe123 HTTP/1.1&quot; 200 3494 &quot;-&quot; &quot;Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)&quot; 0.033 0.033 .</span><br><span class="line">204.141.42.226 - - [05/Dec/2018:00:00:04 +0000] &quot;GET / HTTP/1.1&quot; 301 5 &quot;-&quot; &quot;Site24x7&quot; 0.002 0.002 .</span><br><span class="line">40.77.167.60 - - [05/Dec/2018:00:00:04 +0000] &quot;GET /uploads/user/avatar/11094.jpg!xs HTTP/1.1&quot; 200 1499 &quot;-&quot; &quot;Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)&quot; 0.011 0.011 .</span><br><span class="line">127.0.0.1 - - [05/Dec/2018:00:00:04 +0000] &quot;GET /_img/uploads/user/avatar/11094.jpg!xs HTTP/1.0&quot; 200 1499 &quot;-&quot; &quot;Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)&quot; 0.011 - .</span><br><span class="line">139.180.131.123 - - [05/Dec/2018:00:00:01 +0000] &quot;GET /cable HTTP/1.1&quot; 101 7549 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 587.602 587.602 .</span><br><span class="line">117.136.39.87 - - [05/Dec/2018:00:00:01 +0000] &quot;GET /uploads/user/avatar/12759.jpg!large HTTP/1.1&quot; 200 1866441 &quot;-&quot; &quot;okhttp/3.2.0&quot; 3.910 1.336 .</span><br><span class="line">121.15.166.147 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 335037 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36&quot; 26471.138 26471.138 .</span><br><span class="line">219.142.131.122 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 361523 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.103 Safari/537.36 Vivaldi/2.1.1337.47&quot; 28563.286 28563.286 .</span><br><span class="line">61.132.54.2 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 380979 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36&quot; 30102.676 30102.676 .</span><br><span class="line">103.75.152.102 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 424907 &quot;-&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 33572.810 33572.810 .</span><br><span class="line">222.66.96.129 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 424907 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36&quot; 33573.471 33573.471 .</span><br><span class="line">180.168.166.28 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 424907 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36&quot; 33573.628 33573.628 .</span><br><span class="line">114.94.126.62 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 510141 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36&quot; 40313.333 40313.333 .</span><br><span class="line">61.135.169.90 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 531953 &quot;-&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36&quot; 42038.134 42038.134 .</span><br><span class="line">120.36.255.107 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 580604 &quot;-&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 45876.266 45876.266 .</span><br><span class="line">14.21.33.152 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 580631 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 45884.878 45884.878 .</span><br><span class="line">103.218.216.115 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 593019 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 46865.329 46865.329 .</span><br><span class="line">124.200.99.162 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 593019 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36&quot; 46865.485 46865.485 .</span><br><span class="line">101.95.128.162 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 593106 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36&quot; 46865.503 46865.503 .</span><br><span class="line">45.120.31.9 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 636757 &quot;-&quot; &quot;Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0&quot; 50322.346 50322.346 .</span><br><span class="line">125.46.24.19 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 941 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; WOW64; rv:63.0) Gecko/20100101 Firefox/63.0&quot; 65.038 65.038 .</span><br><span class="line">220.178.67.222 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 14089 &quot;-&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 QQBrowser/4.4.116.400&quot; 1104.968 1104.968 .</span><br><span class="line">122.225.218.44 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 18725 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36&quot; 1471.999 1471.999 .</span><br><span class="line">206.16.17.150 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 64135 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 5061.106 5061.106 .</span><br><span class="line">202.189.3.9 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 80703 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; WOW64; rv:63.0) Gecko/20100101 Firefox/63.0&quot; 6370.541 6370.541 .</span><br><span class="line">14.17.22.35 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 91115 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36&quot; 7190.962 7190.962 .</span><br><span class="line">114.80.11.236 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 169319 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36&quot; 13372.959 13372.959 .</span><br><span class="line">221.226.97.96 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 182087 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36&quot; 14383.058 14383.058 .</span><br><span class="line">115.236.48.202 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 215196 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.26 Safari/537.36 Core/1.63.6776.400 QQBrowser/10.3.2601.400&quot; 16992.246 16992.246 .</span><br><span class="line">153.37.218.54 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 261583 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36&quot; 20663.731 20663.731 .</span><br><span class="line">171.43.191.215 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 273021 &quot;-&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 21568.749 21568.749 .</span><br><span class="line">136.243.151.90 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /topics/16689/replies/124751/edit HTTP/1.1&quot; 302 100 &quot;-&quot; &quot;Mozilla/5.0 (compatible; BLEXBot/1.0; +http://webmeup-crawler.com/)&quot; 0.009 0.009 .</span><br><span class="line">136.243.151.90 - - [05/Dec/2018:00:00:07 +0000] &quot;GET / HTTP/1.1&quot; 200 10085 &quot;-&quot; &quot;Mozilla/5.0 (compatible; BLEXBot/1.0; +http://webmeup-crawler.com/)&quot; 0.071 0.071 .</span><br><span class="line">117.136.39.87 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /oauth/authorize?response_type=code&amp;client_id=6dbe4244&amp;state=E3ZYKC1T6H2yP4z&amp;redirect_uri=urn:ietf:wg:oauth:2.0:oob HTTP/1.1&quot; 302 115 &quot;-&quot; &quot;Mozilla/5.0 (Linux; Android 8.1.0; COL-AL10 Build/HUAWEICOL-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile Safari/537.36&quot; 0.004 0.004 .</span><br><span class="line">115.236.50.18 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 404 45 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36&quot; 0.004 0.004 .</span><br><span class="line">123.121.16.2 - - [05/Dec/2018:00:00:07 +0000] &quot;GET /cable HTTP/1.1&quot; 101 5349 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0&quot; 415.053 415.053 .</span><br></pre></td></tr></table></figure></li>
</ul>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2019/12/01/linux_awk_sed/" data-id="cka9ldn2p0046vkuwvjykq08c" class="article-share-link">Teilen</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/linux/">linux</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2020/01/01/linux_awk/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Neuer</strong>
      <div class="article-nav-title">
        
          linux—awk
        
      </div>
    </a>
  
  
    <a href="/2019/10/27/python_字典/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Älter</strong>
      <div class="article-nav-title">python_dict</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Design-Patterns/">Design Patterns</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Git/">Git</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Html/">Html</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Http/">Http</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/JavaScript/">JavaScript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Sort/">Sort</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/algorithm/">algorithm</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ali-weixin-pay/">ali/weixin pay</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/docker/">docker</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/elasticsearch/">elasticsearch</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/go/">go</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/">hexo</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/idea/">idea</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/">java</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/jvm/">jvm</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/linux/">linux</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/logstash/">logstash</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mysql/">mysql</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/php/">php</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/pytest/">pytest</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/python/">python</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/springboot/">springboot</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/util/">util</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/vue/">vue</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wechat/">wechat</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/我的世界/">我的世界</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/消息队列/">消息队列</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/线程/">线程</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/Design-Patterns/" style="font-size: 16.36px;">Design Patterns</a> <a href="/tags/Git/" style="font-size: 10px;">Git</a> <a href="/tags/Html/" style="font-size: 10px;">Html</a> <a href="/tags/Http/" style="font-size: 12.73px;">Http</a> <a href="/tags/JavaScript/" style="font-size: 15.45px;">JavaScript</a> <a href="/tags/Sort/" style="font-size: 18.18px;">Sort</a> <a href="/tags/algorithm/" style="font-size: 11.82px;">algorithm</a> <a href="/tags/ali-weixin-pay/" style="font-size: 13.64px;">ali/weixin pay</a> <a href="/tags/docker/" style="font-size: 17.27px;">docker</a> <a href="/tags/elasticsearch/" style="font-size: 10px;">elasticsearch</a> <a href="/tags/go/" style="font-size: 11.82px;">go</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/tags/idea/" style="font-size: 10px;">idea</a> <a href="/tags/java/" style="font-size: 20px;">java</a> <a href="/tags/jvm/" style="font-size: 11.82px;">jvm</a> <a href="/tags/linux/" style="font-size: 16.36px;">linux</a> <a href="/tags/logstash/" style="font-size: 12.73px;">logstash</a> <a href="/tags/mysql/" style="font-size: 14.55px;">mysql</a> <a href="/tags/php/" style="font-size: 11.82px;">php</a> <a href="/tags/pytest/" style="font-size: 10px;">pytest</a> <a href="/tags/python/" style="font-size: 13.64px;">python</a> <a href="/tags/springboot/" style="font-size: 17.27px;">springboot</a> <a href="/tags/util/" style="font-size: 19.09px;">util</a> <a href="/tags/vue/" style="font-size: 10px;">vue</a> <a href="/tags/wechat/" style="font-size: 10.91px;">wechat</a> <a href="/tags/我的世界/" style="font-size: 10px;">我的世界</a> <a href="/tags/消息队列/" style="font-size: 10.91px;">消息队列</a> <a href="/tags/线程/" style="font-size: 11.82px;">线程</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archiv</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/04/">April 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/03/">March 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/01/">January 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/12/">December 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/10/">October 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/08/">August 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/06/">June 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/04/">April 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/03/">March 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/02/">February 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/01/">January 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/12/">December 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/11/">November 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/10/">October 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/09/">September 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/07/">July 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/06/">June 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/05/">May 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/04/">April 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/03/">March 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/">February 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/">January 2018</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/">December 2017</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">letzter Beitrag</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2020/04/11/linux_bash/">linux—bash</a>
          </li>
        
          <li>
            <a href="/2020/03/29/hello-world/">Hello World</a>
          </li>
        
          <li>
            <a href="/2020/03/16/go安装和配置/">go安装和配置</a>
          </li>
        
          <li>
            <a href="/2020/03/16/go控制结构/">go控制结构</a>
          </li>
        
          <li>
            <a href="/2020/03/16/go基础/">go基础知识</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2020 chen v<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>



  </div>
</body>
</html>